package com.telecomyt.jwportal.activity.scheme;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.telecomyt.jwportal.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SchemeActivity extends AppCompatActivity {
    @BindView(R.id.mTvTitle)
    TextView mTvTitle;

    public static void start(Context context) {
        Intent starter = new Intent(context, SchemeActivity.class);
        context.startActivity(starter);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_scheme);
        ButterKnife.bind(this);
        Uri data = getIntent().getData();
        String param = data.getQueryParameter("goodsId");
        mTvTitle.setText("传递的参数为：" + param);
    }
}